package com.longcai.cm.moudules.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author Chen-Yue-2019
 * @since 2021-06-08
 */
@TableName("sys_role_menus")
public class SysRoleMenus extends Model<SysRoleMenus> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 角色id
     */
    @TableField("role_id")
    private String roleId;

    /**
     * 菜单/权限id
     */
    @TableField("menu_id")
    private String menuId;

    /**
     * 菜单编码
     */
    @TableField("menu_code")
    private String menuCode;

    /**
     * 数据权限
     */
    @TableField("data_perm")
    private String dataPerm;

    @TableField("update_time")
    private String updateTime;

    @TableField("update_user")
    private String updateUser;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getDataPerm() {
        return dataPerm;
    }

    public void setDataPerm(String dataPerm) {
        this.dataPerm = dataPerm;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysRoleMenus{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", menuId=" + menuId +
                ", menuCode=" + menuCode +
                ", dataPerm=" + dataPerm +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                "}";
    }
}
